/**
 * 
 */
package kr.co.insoft.core.service.template.script;

import java.util.List;

import kr.co.insoft.core.model.paging.PagingModel;
import kr.co.insoft.core.model.template.script.ScriptEntityModel;
import kr.co.insoft.framework.exceptions.ServiceException;

import org.springframework.transaction.annotation.Transactional;

/**
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public interface ScriptService {
	/**
	 * Script Paging 목록
	 * 
	 * @param PagingModel
	 * @return PagingModel
	 * @throws ServiceException
	 */
	public PagingModel getPagingList(PagingModel pagingModel)
			throws ServiceException;

	/**
	 * Script 목록
	 * 
	 * @param
	 * @return List<ScriptEntityModel>
	 * @throws ServiceException
	 */
	public List<ScriptEntityModel> getList()
			throws ServiceException;
	
	/**
	 * Script 등록
	 * 
	 * @param scriptEntityModel
	 * @return 
	 * @throws ServiceException
	 */
	@Transactional(rollbackFor = ServiceException.class)
	public void createScript(ScriptEntityModel scriptEntityModel)
			throws ServiceException;
	
	/**
	 * Script 조회
	 * 
	 * @param scriptId
	 * @return ScriptEntityModel
	 * @throws ServiceException
	 */
	public ScriptEntityModel getScript(String scriptId)
			throws ServiceException;
	
	/**
	 * Script 삭제
	 * 
	 * @param scriptEntityModel
	 * @return
	 * @throws ServiceException
	 */
	public void doRemoveScript(ScriptEntityModel scriptEntityModel)
			throws ServiceException;
	
	/**
	 * Script 수정
	 * 
	 * @param scriptEntityModel
	 * @return
	 * @throws ServiceException
	 */
	public void doEditScript(ScriptEntityModel scriptEntityModel)
			throws ServiceException;
	
	/**
	 * Script Name 중복 체크
	 * @param scriptEntityModel
	 * @return boolean
	 * @throws ServiceException
	 */
	public boolean isExistScriptName(ScriptEntityModel scriptEntityModel)
			throws ServiceException;
	
}
